﻿@model MVCDemo.Web.Areas.Member.Models.LoginViewModel
@{
    ViewBag.Title = "会员登录";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div class="form-horizontal">
        <h4>会员登录</h4>
        <br/>
        @Html.ValidationSummary(true)
        <div class="form-group">
            @Html.LabelFor(model=>model.UserName,new { @class="control-label col-md-2"})
            <div class="col-md-10">
                @Html.EditorFor(model=>model.UserName)
                @Html.ValidationMessageFor(model=>model.UserName)
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(model => model.Password,new { @class="control-label col-md-2"})
            <div class="col-md-10">
                @Html.EditorFor(model=>model.Password)
                @Html.ValidationMessageFor(model=>model.Password)
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(model => model.RememberMe,new { @class="control-label col-md-2"})
            <div class="col-md-10">
                @Html.EditorFor(model=>model.RememberMe)
                @Html.ValidationMessageFor(model=>model.RememberMe)
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="登录" class="btn btn-default"/>
            </div>
        </div>
    </div>
}

@section Scripts{
    @Scripts.Render("~/bundles/jqueryval")
}